#ifndef __AFE_BQ769XX_H
#define __AFE_BQ769XX_H	 

#include "hc32_ddl.h"
#include "BQ769xx.h"

void bq_timeout_deal(void);
BQ_SYS_CTRL_REG_STATUS bq_get_status(void);
int32_t bq_get_current(void);
void bq_get_cell_vol(uint8_t batNum,uint16_t *volArray);
uint32_t bq_balance_open(uint8_t batNum,uint8_t maxVolNum,uint32_t needBalState);
void bq_balance_close(void);
void bq_set_SCD(uint16_t curVol,uint16_t delay);
void bq_set_OCD(uint16_t curVol,uint16_t delay);
void bq_set_OV_UV_Delay(uint8_t odelay,uint8_t udelay);
void bq_set_OV_UV(uint16_t overVol,uint16_t underVol);
void bq_sleep_enter(void);
void bq_sleep_exit(void);
#endif

